package com.david.cms.model;

/**
 * 
 */


import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

/**
 * @description 省市
 * @author David
 * @version 2013-5-13
 */
@Entity
@Table(name = "t_city")
public class City {
	/**
	 * ID
	 */
	private String id;
	/**
	 * 省市名称
	 */
	private String name;
	/**
	 * 备注
	 */
	private String remark;
	@Id   
	@GenericGenerator(name = "generator", strategy = "uuid.hex")   
	@GeneratedValue(generator = "generator")   
	@Column(name = "id", length = 50)  
	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}
	@Column(name = "name")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	@Column(name = "remark")
	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}
	public City(){
		
	}
	
	public City(String id){
		this.id=id;
	}
}

